FEAT Add SimpleSafetyTests dataset loader#1426
Open
romanlutz wants to merge 5 commits intoAzure:mainfrom
Open
Conversation
7a32aee to
0b9827a
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new remote seed dataset loader for HuggingFace dataset Bertievidgen/SimpleSafetyTests so it can be discovered and fetched via PyRIT’s SeedDatasetProvider mechanism.
Changes:
- Introduces
_SimpleSafetyTestsDatasetremote loader that fetches prompts from HuggingFace and converts them intoSeedPrompts. - Adds unit tests covering the new loader’s
fetch_datasetbehavior anddataset_name. - Updates dataset-loading documentation notebook output to include
simple_safety_testsin the available dataset list.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
pyrit/datasets/seed_datasets/remote/simple_safety_tests_dataset.py |
New HuggingFace-backed dataset loader for SimpleSafetyTests. |
pyrit/datasets/seed_datasets/remote/__init__.py |
Exposes the new loader so it registers/discovers with other remote providers. |
tests/unit/datasets/test_simple_safety_tests_dataset.py |
Adds unit tests for the new loader. |
doc/code/datasets/1_loading_datasets.ipynb |
Updates the “Loading Built-in Datasets” notebook to reflect the new dataset name, but also includes newly-executed metadata/outputs. |
pyrit/datasets/seed_datasets/remote/simple_safety_tests_dataset.py
Outdated
Show resolved
Hide resolved
pyrit/datasets/seed_datasets/remote/simple_safety_tests_dataset.py
Outdated
Show resolved
Hide resolved
0b9827a to
1efaa09
Compare
Add remote dataset loader for SimpleSafetyTests (Bertievidgen/SimpleSafetyTests), a lightweight diagnostic set of 100 critical safety test prompts for quickly evaluating the most basic safety properties of LLMs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1efaa09 to
9ec9d88
Compare
pyrit/datasets/seed_datasets/remote/simple_safety_tests_dataset.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add remote dataset loader for SimpleSafetyTests (Bertievidgen/SimpleSafetyTests), a lightweight diagnostic set of 100 critical safety test prompts for quickly evaluating the most basic safety properties of LLMs.